<% if !mobile? %>
<div class="hide-ios">
  <%= raw Setting.index_html %>
</div>
<% end %>

<% if !@excellent_topics.blank? %>
<div class="home_suggest_topics card">
  <div class="card-body topics row">
    <% cache(["home_suggest_topics", @excellent_topics]) do %>
    <%
      odd_topics, even_topics = @excellent_topics.partition.each_with_index { |t, i| i.odd?  }
    %>
    <div class="col-md-6 topics-group">
      <%= render partial: "topics/topic", collection: even_topics, locals: { suggest: false } %>
    </div>

    <div class="col-md-6 topics-group">
      <%= render partial: "topics/topic", collection: odd_topics, locals: { suggest: false } %>
    </div>
    <% end %>
  </div>
  <div class="card-footer hidden-mobile">
    <%= link_to "查看更多精华帖...", excellent_topics_path %>
  </div>
</div>
<% end %>

<% if !mobile? %>
  <%= render "/shared/index_sections" %>
  <%= render "/shared/hot_locations" %>
<% end %>
